package edu.uoc.tdp.pac4.connexiomanteniment.gui;

import java.awt.EventQueue;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import edu.uoc.tdp.pac4.connexiomanteniment.i18n.*;

public class PantallaMenuEstudiant extends PantallaMenuGeneral {

	private static final long serialVersionUID = 3065279689452874985L;
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					PantallaMenuEstudiant frame = new PantallaMenuEstudiant();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public PantallaMenuEstudiant() {
		super();
		setResizable(false);
	
		JButton button_1 = new JButton(LanguageUtils.getMessage("PantallaMenuEstudiant.studentsButton.text"));
		button_1.setBounds(57, 102, 174, 47);
		getContentPane().add(button_1);
		button_1.setIcon(new ImageIcon(PantallaMenuEstudiant.class.getResource("/images/book_open.png")));
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {	
				// AQUI S'HA D'AFEGIR EL QUE CALGUI PER A OBRIR LA FINESTRA QUE TOQUI DEL SUBSISTEMA ESTUDIANT
			}
		});


		JButton button_2 = new JButton(LanguageUtils.getMessage("PantallaMenuEstudiant.statisticsButton.text"));
		button_2.setBounds(57, 155, 174, 47);
		getContentPane().add(button_2);
		button_2.setIcon(new ImageIcon(PantallaMenuEstudiant.class.getResource("/images/document_chart.png")));	
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {	
				// AQUI S'HA D'AFEGIR EL QUE CALGUI PER A OBRIR LA FINESTRA QUE TOQUI DEL SUBSISTEMA ESTUDIANT (per a les estadistiques de l'estudiant)
			}
		});
	}
}
